#ifndef FILETABLEVIEW_H
#define FILETABLEVIEW_H

#include <QtGui/QTableView>
#include <QtGui/QMenu>
#include <QtGui/QAction>
#include <QtCore/QPoint>
#include "Portability.h"

class FileTableView : public QTableView
{
	Q_OBJECT

public:
	FileTableView(QWidget *parent=0);
	virtual ~FileTableView();

	QString currentImageFile() const;
	void setCurrentImageToNext();
	void setCurrentImageToPrev();
	void setContextMenu(QMenu*);
	QMenu* contextMenu() const;
signals:
	void scrollViewWidthChanged(int);
	void currentImageFileChanged(const QString&);
protected:
	virtual void resizeEvent ( QResizeEvent * event ) override;
	virtual void contextMenuEvent ( QContextMenuEvent * event )  override;
private slots:
	void showContextMenu(const QPoint &);

private:
	QMenu* _contextMenu;
};

#endif // FILETABLEVIEW_H
